package com.yiyun.blog.vo;

import lombok.Data;

import java.util.List;

/**
 *
 * 数据库查询出的信息,并不是全部展示;页面需要的信息，数据库里也不一定有,就需要重新定义一个参数类
 * 建立与前端交互的Vo文件
 */
@Data
public class ArticleVo {

    //保证雪花算法得到的id的精度
//    @JsonSerialize(using = ToStringSerializer.class)
    private String id;

    private String title;

    private String summary;

    private Integer commentCounts;

    private Integer viewCounts;

    private Integer weight;
    /**
     * 创建时间
     */
    private String createDate;

    private UserVo author;

    private ArticleBodyVo body;

    private List<TagVo> tags;

    private CategoryVo category;

}

